import axios from 'axios'

export const apiAxios = axios.create({
  baseURL: 'ai'
})

apiAxios.interceptors.response.use(
  response => {
    // // token 失效
    // response.data.headers = response.headers
    return response.data
  },
  err => {
    return { data: { returnMessage: err.message + ',' + err.stack } }
  }
)
